package com.example.candiates.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.candiates.domain.InterviewQuestion;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;

@Mapper
public interface InterviewQuestionMapper extends BaseMapper<InterviewQuestion> {
    
    @Select("SELECT * FROM interview_question WHERE id IN (${questionSetIds}) AND status = 1 ORDER BY order_num ASC")
    List<InterviewQuestion> selectByQuestionSetIds(String questionSetIds);
} 